package cn.maihe.elg.operation.supports.electronicseal.anne.utils.annesign;

public interface Validateable {

    /**
     * 使用Hibernate Validator验证实例规则
     *
     * @return
     * @throws ValidateException
     */
    boolean validate() throws ValidateException;

    /**
     * 使用Hibernate Validator验证实例规则，抛出第一个异常
     *
     * @return
     * @throws ValidateException
     */
    boolean validateOnce() throws ValidateException;
}
